/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is mozilla.org code.
 *
 * The Initial Developer of the Original Code is
 * Netscape Communications Corporation.
 * Portions created by the Initial Developer are Copyright (C) 1998-1999
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Joe Hewitt (hewitt@netscape.com)
 *   Jason Kersey (kerz@netscape.com)
 *   Pierre Chanial (chanial@noos.fr)
 *   Dean Tessman (dean_tessman@hotmail.com)
 *   Blake Ross (blake@cs.stanford.edu)
 *   Pamela Greene (pamg.bugs@gmail.com)
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */
 
 /* toolbar_icons.css -> custom file for all primary toolar buttons. C.Nicks */
 
/* ::::: primary toolbar buttons ::::: */

.toolbarbutton-1 {
  -moz-box-orient: vertical;
  min-width: 0;
  border: none;
  list-style-image: url("chrome://browser/skin/Toolbar.png");
}

.toolbarbutton-1:hover,
.toolbarbutton-1:hover:active,
.toolbarbutton-1[open="true"],
.toolbarbutton-1[checked="true"] {
  border: none;
  background: none;
}

.toolbarbutton-1 > .toolbarbutton-icon {
  -moz-margin-end: 0px;
}

toolbar[mode="full"] .toolbarbutton-1,
toolbar[mode="full"] .toolbarbutton-menubutton-button {
  min-width: 57px;
}

.toolbarbutton-1,
.toolbarbutton-menubutton-button {
  padding: 1px;
}

.toolbarbutton-1[checked="true"] {
  padding: 1px !important;
}

/* ::::: unified back and forward buttons ::::: */

/* unified back button with keyhole icons */

toolbar[mode="icons"] #back-button {
  -moz-appearance: none;
  padding: 0;
  -moz-padding-start: 2px;
  -moz-padding-end: 2px;
  border: none;
}

toolbar[iconsize="large"][mode="icons"] #back-button {
  -moz-image-region: rect(0px 32px 32px 0px);
}
toolbar[iconsize="large"][mode="icons"] #back-button:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 32px 64px 0px);
}
toolbar[iconsize="large"][mode="icons"] #back-button[disabled="true"] {
  -moz-image-region: rect(96px 32px 128px 0px);
}
toolbar[iconsize="large"][mode="icons"] #back-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 32px 96px 0px);
}

/* unified back button with keyhole icons, RTL version */

toolbar[iconsize="large"][mode="icons"] #back-button[chromedir="rtl"] {
  -moz-image-region: rect(0px 64px 32px 32px);
}
toolbar[iconsize="large"][mode="icons"] #back-button[chromedir="rtl"]:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 64px 64px 32px);
}
toolbar[iconsize="large"][mode="icons"] #back-button[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(96px 64px 128px 32px);
}
toolbar[iconsize="large"][mode="icons"] #back-button[chromedir="rtl"]:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 64px 96px 32px);
}

/* unified forward button with keyhole icons */

toolbar[mode="icons"] #forward-button {
  -moz-appearance: none;
  padding: 0;
  -moz-padding-start: 2px;
  border: none;
}

toolbar[iconsize="large"][mode="icons"] #forward-button {
  -moz-image-region: rect(0px 64px 32px 32px);
}
toolbar[iconsize="large"][mode="icons"] #forward-button:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 64px 64px 32px);
}
toolbar[iconsize="large"][mode="icons"] #forward-button[disabled="true"] {
  -moz-image-region: rect(96px 64px 128px 32px);
}
toolbar[iconsize="large"][mode="icons"] #forward-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 64px 96px 32px);
}

/* unified forward button with keyhole icons, RTL version */

toolbar[iconsize="large"][mode="icons"] #forward-button[chromedir="rtl"] {
  -moz-image-region: rect(0px 32px 32px 0px);
}
toolbar[iconsize="large"][mode="icons"] #forward-button[chromedir="rtl"]:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 32px 64px 0px);
}
toolbar[iconsize="large"][mode="icons"] #forward-button[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(96px 32px 128px 0px);
}
toolbar[iconsize="large"][mode="icons"] #forward-button[chromedir="rtl"]:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 32px 96px 0px);
}

/* dropmarker for unified back and forward buttons with keyhole icons */

toolbar[mode="icons"] #back-forward-dropmarker {
  -moz-appearance: none;
  padding: 0;
  -moz-padding-end: 2px;
  border: none;
}

toolbar[mode="icons"] #back-forward-dropmarker > image {
  display: -moz-box;
  margin: 0;
}

toolbar[mode="icons"] #back-forward-dropmarker > dropmarker {
  display: none;
}

toolbar[iconsize="large"][mode="icons"] #back-forward-dropmarker {
  list-style-image: url("chrome://browser/skin/icons/dropmarker.png");
  -moz-image-region: rect(0px 16px 16px 0px);
}
toolbar[iconsize="large"][mode="icons"] #back-forward-dropmarker:not([disabled="true"]):hover {
  -moz-image-region: rect(16px 16px 32px 0px);
}
toolbar[iconsize="large"][mode="icons"] #back-forward-dropmarker[disabled="true"] {
  -moz-image-region: rect(32px 16px 48px 0px);
}
toolbar[iconsize="large"][mode="icons"] #back-forward-dropmarker:not([disabled="true"]):hover:active {
  -moz-image-region: rect(16px 16px 32px 0px);
}

/* unified dropmarker with keyhole icons, RTL version 

toolbar[iconsize="large"][mode="icons"] #back-forward-dropmarker[chromedir="rtl"] {
  -moz-image-region: rect(3px 452px 31px 438px);
}
toolbar[iconsize="large"][mode="icons"] #back-forward-dropmarker[chromedir="rtl"]:not([disabled="true"]):hover {
  -moz-image-region: rect(37px 452px 65px 438px);
}
toolbar[iconsize="large"][mode="icons"] #back-forward-dropmarker[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(71px 452px 99px 438px);
}
toolbar[iconsize="large"][mode="icons"] #back-forward-dropmarker[chromedir="rtl"]:not([disabled="true"]):hover:active {
  -moz-image-region: rect(105px 452px 133px 438px);
}*/

/* ::::: unified back and forward buttons, small icons mode ::::: */

toolbar[iconsize="small"][mode="icons"] #back-button > .toolbarbutton-icon,
toolbar[iconsize="small"][mode="icons"] #forward-button > .toolbarbutton-icon {
  -moz-padding-end: 0;
}

/* unified back button with keyhole icons, small icons mode */

toolbar[iconsize="small"][mode="icons"] #back-button {
  -moz-image-region: rect(0px 22px 22px 0px);
}
toolbar[iconsize="small"][mode="icons"] #back-button:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 22px 44px 0px);
}
toolbar[iconsize="small"][mode="icons"] #back-button[disabled="true"] {
  -moz-image-region: rect(66px 22px 88px 0px);
}
toolbar[iconsize="small"][mode="icons"] #back-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 22px 66px 0px);
}

/* unified back button with keyhole icons, small icons mode, RTL version */

toolbar[iconsize="small"][mode="icons"] #back-button[chromedir="rtl"] {
  -moz-image-region: rect(0px 44px 22px 22px);
}
toolbar[iconsize="small"][mode="icons"] #back-button[chromedir="rtl"]:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 44px 44px 22px);
}
toolbar[iconsize="small"][mode="icons"] #back-button[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(66px 44px 88px 22px);
}
toolbar[iconsize="small"][mode="icons"] #back-button[chromedir="rtl"]:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 44px 66px 22px);
}

/* unified forward button with keyhole icons, small icons mode */

toolbar[iconsize="small"][mode="icons"] #forward-button {
  -moz-image-region: rect(0px 44px 22px 22px);
}
toolbar[iconsize="small"][mode="icons"] #forward-button:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 44px 44px 22px);
}
toolbar[iconsize="small"][mode="icons"] #forward-button[disabled="true"] {
  -moz-image-region: rect(66px 44px 88px 22px);
}
toolbar[iconsize="small"][mode="icons"] #forward-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 44px 66px 22px);
}

/* unified forward button with keyhole icons, small icons mode, RTL version */

toolbar[iconsize="small"][mode="icons"] #forward-button[chromedir="rtl"] {
  -moz-image-region: rect(0px 22px 22px 0px);
}
toolbar[iconsize="small"][mode="icons"] #forward-button[chromedir="rtl"]:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 22px 44px 0px);
}
toolbar[iconsize="small"][mode="icons"] #forward-button[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(66px 22px 88px 0px);
}
toolbar[iconsize="small"][mode="icons"] #forward-button[chromedir="rtl"]:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 22px 66px 0px);
}

/* dropmarker for unified back and forward buttons with keyhole icons, small icons mode */

toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker {
  list-style-image: url("chrome://browser/skin/icons/dropmarker.png");
  -moz-image-region: rect(0px 16px 16px 0px);
}
toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker:not([disabled="true"]):hover {
  -moz-image-region: rect(16px 16px 32px 0px);
}
toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker[disabled="true"] {
  -moz-image-region: rect(32px 16px 48px 0px);
}
toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker:not([disabled="true"]):hover:active {
  -moz-image-region: rect(16px 16px 32px 0px);
}

/* unified dropmarker with keyhole icons, small icons mode, RTL version

toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker[chromedir="rtl"] {
  -moz-image-region: rect(0px 314px 24px 301px);
}
toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker[chromedir="rtl"]:not([disabled="true"]):hover {
  -moz-image-region: rect(24px 314px 48px 301px);
}
toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(48px 314px 72px 301px);
}
toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker[chromedir="rtl"]:not([disabled="true"]):hover:active {
  -moz-image-region: rect(72px 314px 96px 301px);
} */

/* ::::: 24px primary toolbar buttons ::::: */

/* back button */

#back-button {
  -moz-image-region: rect(0px 32px 32px 0px); 
}
#back-button:not([disabled="true"]):hover,
#back-button[buttonover="true"] {
  -moz-image-region: rect(32px 32px 64px 0px);
}
#back-button[disabled="true"] {
  -moz-image-region: rect(96px 32px 128px 0px);
}
#back-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 32px 96px 0px);
}

#back-button[chromedir="rtl"] {
  -moz-image-region: rect(0px 64px 32px 32px);
}
#back-button[chromedir="rtl"]:not([disabled="true"]):hover,
#back-button[chromedir="rtl"][buttonover="true"] {
  -moz-image-region: rect(32px 64px 64px 32px);
}
#back-button[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(96px 64px 128px 32px);
}
#back-button[chromedir="rtl"]:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 64px 96px 32px);
}

/* forward button */

#forward-button {
  -moz-image-region: rect(0px 64px 32px 32px);
}
#forward-button:not([disabled="true"]):hover,
#forward-button[buttonover="true"] {
  -moz-image-region: rect(32px 64px 64px 32px);
}
#forward-button[disabled="true"] {
  -moz-image-region: rect(96px 64px 128px 32px);
}
#forward-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 64px 96px 32px);
}

#forward-button[chromedir="rtl"] {
  -moz-image-region: rect(0px 32px 32px 0px); 
}
#forward-button[chromedir="rtl"]:not([disabled="true"]):hover,
#forward-button[chromedir="rtl"][buttonover="true"] {
  -moz-image-region: rect(32px 32px 64px 0px);
}
#forward-button[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(96px 32px 128px 0px);
}
#forward-button[chromedir="rtl"]:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 32px 96px 0px);
}

/* stop button */

#stop-button {
  -moz-image-region: rect(0px 96px 32px 64px);
}
#stop-button:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 96px 64px 64px);
}
#stop-button[disabled="true"] {
  -moz-image-region: rect(96px 96px 128px 64px);
}
#stop-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 96px 96px 64px);
}

/* reload button */

#reload-button {
  -moz-image-region: rect(0px 128px 32px 96px);
}
#reload-button:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 128px 64px 96px);
}
#reload-button[disabled="true"] {
  -moz-image-region: rect(96px 128px 128px 96px);
}
#reload-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 128px 96px 96px);
}

/* home button */

#home-button {
  -moz-image-region: rect(0px 160px 32px 128px);
}
#home-button:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 160px 64px 128px);
}
#home-button[disabled="true"] {
  -moz-image-region: rect(96px 160px 128px 128px);
}
#home-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 160px 96px 128px);
}

/* download manager button */

#downloads-button {
  -moz-image-region: rect(0px 192px 32px 160px);
}
#downloads-button:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 192px 64px 160px);
}
#downloads-button[disabled="true"] {
  -moz-image-region: rect(96px 192px 128px 160px);
}
#downloads-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 192px 96px 160px);
}

/* history sidebar button */

#history-button {
  -moz-image-region: rect(0px 224px 32px 192px);
}
#history-button:not([disabled="true"]):not([checked="true"]):hover {
  -moz-image-region: rect(32px 224px 64px 192px);
}
#history-button[disabled="true"] {
  -moz-image-region: rect(96px 224px 128px 192px);
}
#history-button[checked="true"] {
  -moz-image-region: rect(64px 224px 96px 192px);
}
#history-button:not([disabled="true"]):not([checked="true"]):hover:active {
  -moz-image-region: rect(64px 224px 96px 192px);
}

/* bookmark sidebar button */

#bookmarks-button {
  -moz-image-region: rect(0px 256px 32px 224px);
}
#bookmarks-button:not([disabled="true"]):not([checked="true"]):hover {
  -moz-image-region: rect(32px 256px 64px 224px);
}
#bookmarks-button[disabled="true"] {
  -moz-image-region: rect(96px 256px 128px 224px);
}
#bookmarks-button[checked="true"] {
  -moz-image-region: rect(64px 256px 96px 224px);
}
#bookmarks-button:not([disabled="true"]):not([checked="true"]):hover:active {
  -moz-image-region: rect(64px 256px 96px 224px);
}

/* print button */

#print-button {
  -moz-image-region: rect(0px 288px 32px 256px);
}
#print-button:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 288px 64px 256px);
}
#print-button[disabled="true"] {
  -moz-image-region: rect(96px 288px 128px 256px);
}
#print-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 288px 96px 256px);
}

/* new tab button */

toolbar:not([iconsize="small"]) #new-tab-button > .toolbarbutton-icon {
  padding-left: 1px;
}
#new-tab-button {
  -moz-image-region: rect(0px 320px 32px 288px);
}
#new-tab-button:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 320px 64px 288px);
}
#new-tab-button[disabled="true"] {
  -moz-image-region: rect(96px 320px 128px 288px);
}
#new-tab-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 320px 96px 288px);
}

/* new window button */

toolbar:not([iconsize="small"]) #new-window-button > .toolbarbutton-icon {
  padding-left: 1px;
}
#new-window-button {
  -moz-image-region: rect(0px 352px 32px 320px);
}
#new-window-button:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 352px 64px 320px);
}
#new-window-button[disabled="true"] {
  -moz-image-region: rect(96px 352px 128px 320px);
}
#new-window-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 352px 96px 320px);
}

/* cut button */

#cut-button {
  -moz-image-region: rect(0px 384px 32px 352px);
}
#cut-button:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 384px 64px 352px);
}
#cut-button[disabled="true"] {
  -moz-image-region: rect(96px 384px 128px 352px);
}
#cut-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 384px 96px 352px);
}

/* copy button */

#copy-button {
  -moz-image-region: rect(0px 416px 32px 384px);
}
#copy-button:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 416px 64px 384px);
}
#copy-button[disabled="true"] {
  -moz-image-region: rect(96px 416px 128px 384px);
}
#copy-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 416px 96px 384px);
}

/* paste button */

#paste-button {
  -moz-image-region: rect(0px 448px 32px 416px);
}
#paste-button:not([disabled="true"]):hover {
  -moz-image-region: rect(32px 448px 64px 416px);
}
#paste-button[disabled="true"] {
  -moz-image-region: rect(96px 448px 128px 416px);
}
#paste-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(64px 448px 96px 416px);
}

/* ::::: 16px primary toolbar buttons ::::: */

toolbar[iconsize="small"] .toolbarbutton-1 {
  -moz-box-orient: vertical;
  min-width: 0;
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
}

toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"] {
  border: 0 !important;
}

/* back button */

toolbar[iconsize="small"] #back-button > .toolbarbutton-icon {
  -moz-padding-end: 1px;
}
toolbar[iconsize="small"] #back-button {
  -moz-image-region: rect(0px 22px 22px 0px);
}
toolbar[iconsize="small"] #back-button:not([disabled="true"]):hover,
toolbar[iconsize="small"] #back-button[buttonover="true"] {
  -moz-image-region: rect(22px 22px 44px 0px);
}
toolbar[iconsize="small"] #back-button[disabled="true"] {
  -moz-image-region: rect(66px 22px 88px 0px);
}
toolbar[iconsize="small"] #back-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 22px 66px 0px);
}

toolbar[iconsize="small"] #back-button[chromedir="rtl"] {
  -moz-image-region: rect(0px 44px 22px 22px);
}
toolbar[iconsize="small"] #back-button[chromedir="rtl"]:not([disabled="true"]):hover,
toolbar[iconsize="small"] #back-button[chromedir="rtl"][buttonover="true"] {
  -moz-image-region: rect(22px 44px 44px 22px);
}
toolbar[iconsize="small"] #back-button[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(66px 44px 88px 22px);
}
toolbar[iconsize="small"] #back-button[chromedir="rtl"]:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 44px 66px 22px);
}
.unified-nav-back[_moz-menuactive],
menupopup[chromedir="rtl"] > .unified-nav-forward[_moz-menuactive] {
  list-style-image: url("chrome://browser/skin/menu-back.png") !important;
}

/* forward button */

toolbar[iconsize="small"] #forward-button > .toolbarbutton-icon {
  -moz-padding-end: 1px;
}
toolbar[iconsize="small"] #forward-button {
  -moz-image-region: rect(0px 44px 22px 22px);
}
toolbar[iconsize="small"] #forward-button:not([disabled="true"]):hover,
toolbar[iconsize="small"] #forward-button[buttonover="true"] {
  -moz-image-region: rect(22px 44px 44px 22px);
}
toolbar[iconsize="small"] #forward-button[disabled="true"] {
  -moz-image-region: rect(66px 44px 88px 22px);
}
toolbar[iconsize="small"] #forward-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 44px 66px 22px);
}

toolbar[iconsize="small"] #forward-button[chromedir="rtl"] {
  -moz-image-region: rect(0px 22px 22px 0px);
}
toolbar[iconsize="small"] #forward-button[chromedir="rtl"]:not([disabled="true"]):hover,
toolbar[iconsize="small"] #forward-button[chromedir="rtl"][buttonover="true"] {
  -moz-image-region: rect(22px 22px 44px 0px);
}
toolbar[iconsize="small"] #forward-button[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(66px 22px 88px 0px);
}
toolbar[iconsize="small"] #forward-button[chromedir="rtl"]:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 22px 66px 0px);
}
.unified-nav-forward[_moz-menuactive],
menupopup[chromedir="rtl"] > .unified-nav-back[_moz-menuactive] {
  list-style-image: url("chrome://browser/skin/menu-forward.png") !important;
}

/* stop button */

toolbar[iconsize="small"] #stop-button > .toolbarbutton-icon {
  padding-left: 1px;
}
toolbar[iconsize="small"] #stop-button {
  -moz-image-region: rect(0px 66px 22px 44px);
}
toolbar[iconsize="small"] #stop-button:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 66px 44px 44px);
}
toolbar[iconsize="small"] #stop-button[disabled="true"] {
  -moz-image-region: rect(66px 66px 88px 44px);
}
toolbar[iconsize="small"] #stop-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 66px 66px 44px);
}

/* reload button */

toolbar[iconsize="small"] #reload-button > .toolbarbutton-icon {
  padding-left: 1px;
}
toolbar[iconsize="small"] #reload-button {
  -moz-image-region: rect(0px 88px 22px 66px);
}
toolbar[iconsize="small"] #reload-button:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 88px 44px 66px);
}
toolbar[iconsize="small"] #reload-button[disabled="true"] {
  -moz-image-region: rect(66px 88px 88px 66px);
}
toolbar[iconsize="small"] #reload-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 88px 66px 66px);
}

/* home button */

toolbar[iconsize="small"] #home-button.toolbarbutton-1 > .toolbarbutton-icon {
  padding-left: 1px;
}
#home-button.bookmark-item {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
}
toolbar[iconsize="small"] #home-button ,
#home-button.bookmark-item {
  -moz-image-region: rect(0px 110px 22px 88px);
}
toolbar[iconsize="small"] #home-button:not([disabled="true"]):hover ,
#home-button.bookmark-item:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 110px 44px 88px);
}
toolbar[iconsize="small"] #home-button[disabled="true"] ,
#home-button.bookmark-item[disabled="true"] {
  -moz-image-region: rect(66px 110px 88px 88px);
}
toolbar[iconsize="small"] #home-button:not([disabled="true"]):hover:active ,
#home-button.bookmark-item:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 110px 66px 88px);
}

/* download manager button */

toolbar[iconsize="small"] #downloads-button > .toolbarbutton-icon {
  padding-left: 1px;
}
toolbar[iconsize="small"] #downloads-button {
  -moz-image-region: rect(0px 132px 22px 110px);
}
toolbar[iconsize="small"] #downloads-button:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 132px 44px 110px);
}
toolbar[iconsize="small"] #downloads-button[disabled="true"] {
  -moz-image-region: rect(66px 132px 88px 110px);
}
toolbar[iconsize="small"] #downloads-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 132px 66px 110px);
}

/* history sidebar button */

toolbar[iconsize="small"] #history-button > .toolbarbutton-icon {
  padding-left: 1px;
}
toolbar[iconsize="small"] #history-button {
  -moz-image-region: rect(0px 154px 22px 132px);
}
toolbar[iconsize="small"] #history-button:not([disabled="true"]):not([checked="true"]):hover {
  -moz-image-region: rect(22px 154px 44px 132px);
}
toolbar[iconsize="small"] #history-button[disabled="true"] {
  -moz-image-region: rect(66px 154px 88px 132px);
}
toolbar[iconsize="small"] #history-button[checked="true"] {
  -moz-image-region: rect(44px 154px 66px 132px);
}
toolbar[iconsize="small"] #history-button:not([disabled="true"]):not([checked="true"]):hover:active {
  -moz-image-region: rect(44px 154px 66px 132px);
}

/* bookmark sidebar button */

toolbar[iconsize="small"] #bookmarks-button > .toolbarbutton-icon {
  padding-left: 2px;
}
toolbar[iconsize="small"] #bookmarks-button {
  -moz-image-region: rect(0px 176px 22px 154px);
}
toolbar[iconsize="small"] #bookmarks-button:not([disabled="true"]):not([checked="true"]):hover {
  -moz-image-region: rect(22px 176px 44px 154px);
}
toolbar[iconsize="small"] #bookmarks-button[disabled="true"] {
  -moz-image-region: rect(66px 176px 88px 154px);
}
toolbar[iconsize="small"] #bookmarks-button[checked="true"] {
  -moz-image-region: rect(44px 176px 66px 154px);
}
toolbar[iconsize="small"] #bookmarks-button:not([disabled="true"]):not([checked="true"]):hover:active {
  -moz-image-region: rect(44px 176px 66px 154px);
}

/* print button */

toolbar[iconsize="small"] #print-button > .toolbarbutton-icon {
  padding-left: 1px;
}
toolbar[iconsize="small"] #print-button {
  -moz-image-region: rect(0px 198px 22px 176px);
}
toolbar[iconsize="small"] #print-button:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 198px 44px 176px);
}
toolbar[iconsize="small"] #print-button[disabled="true"] {
  -moz-image-region: rect(66px 198px 88px 176px);
}
toolbar[iconsize="small"] #print-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 198px 66px 176px);
}

/* new tab button */

toolbar[iconsize="small"] #new-tab-button > .toolbarbutton-icon {
  padding-left: 1px;
}
toolbar[iconsize="small"] #new-tab-button {
  -moz-image-region: rect(0px 220px 22px 198px);
}
toolbar[iconsize="small"] #new-tab-button:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 220px 44px 198px);
}
toolbar[iconsize="small"] #new-tab-button[disabled="true"] {
  -moz-image-region: rect(66px 220px 88px 198px);
}
toolbar[iconsize="small"] #new-tab-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 220px 66px 198px);
}

/* new window button */

toolbar[iconsize="small"] #new-window-button {
  -moz-image-region: rect(0px 242px 22px 220px);
}
toolbar[iconsize="small"] #new-window-button:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 242px 44px 220px);
}
toolbar[iconsize="small"] #new-window-button[disabled="true"] {
  -moz-image-region: rect(66px 242px 88px 220px);
}
toolbar[iconsize="small"] #new-window-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 242px 66px 220px);
}

/* cut button */

toolbar[iconsize="small"] #cut-button > .toolbarbutton-icon {
  padding-right: 1px;
}
toolbar[iconsize="small"] #cut-button {
  -moz-image-region: rect(0px 264px 22px 242px);
}
toolbar[iconsize="small"] #cut-button:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 264px 44px 242px);
}
toolbar[iconsize="small"] #cut-button[disabled="true"] {
  -moz-image-region: rect(66px 264px 88px 242px);
}
toolbar[iconsize="small"] #cut-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 264px 66px 242px);
}

/* copy button */

toolbar[iconsize="small"] #copy-button > .toolbarbutton-icon {
  padding-left: 1px;
}
toolbar[iconsize="small"] #copy-button {
  -moz-image-region: rect(0px 286px 22px 264px);
}
toolbar[iconsize="small"] #copy-button:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 286px 44px 264px);
}
toolbar[iconsize="small"] #copy-button[disabled="true"] {
  -moz-image-region: rect(66px 286px 88px 264px);
}
toolbar[iconsize="small"] #copy-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 286px 66px 264px);
}

/* paste button */

toolbar[iconsize="small"] #paste-button > .toolbarbutton-icon {
  padding-left: 1px;
}
toolbar[iconsize="small"] #paste-button {
  -moz-image-region: rect(0px 308px 22px 286px);
}
toolbar[iconsize="small"] #paste-button:not([disabled="true"]):hover {
  -moz-image-region: rect(22px 308px 44px 286px);
}
toolbar[iconsize="small"] #paste-button[disabled="true"] {
  -moz-image-region: rect(66px 308px 88px 286px);
}
toolbar[iconsize="small"] #paste-button:not([disabled="true"]):hover:active {
  -moz-image-region: rect(44px 308px 66px 286px);
}